package com.augmentum.oes.service;

import java.util.List;

import com.augmentum.oes.exception.ParameterException;
import com.augmentum.oes.exception.ServiceException;
import com.augmentum.oes.model.Pagination;
import com.augmentum.oes.model.Question;

public interface QuestionService {

    Question createQuestion(Question question, String radio) throws ParameterException, ServiceException;

    List<Question> getAllViewList(Pagination pagination, String sort, String keyWord) throws ServiceException;

    Question getByQuestionId(String id) throws ParameterException;

    void updateQuestion(Question question, String radio, String[] ansStr) throws ParameterException;

    void dropById(String[] idStr) throws ParameterException;

    Question getLastQuestion();

    List<Question> getRandomQuestion(int row);

}